﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DBBase;

namespace Business
{
    public partial class zongjianpingpan : Form
    {
        public zongjianpingpan(int iDetectID, string zjhphm)
        {
            InitializeComponent();
            text_zjlsh.Text = iDetectID.ToString();
            text_zjhphm.Text = zjhphm;
        }
        public void updatpanding(string sjieguo, int m_iDetectID)
        {
            string sSQL;
            sSQL = string.Format(@"Update PD_ZJ Set PD_PJ='{0}' where DETECT_ID={1}", sjieguo, m_iDetectID);
            Query mquery = new Query();
            mquery.InsertDB(sSQL);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            updatpanding(comboBox_zjdengji.Text.Trim(), int.Parse(text_zjlsh.Text.Trim()));
            MessageBox.Show("成功");
            this.Close();
        }


    }
}
